{% extends "adibilisadminBundle::layout.html.twig" %}

{% block title %}
  Commander le pass - {{ parent() }}
{% endblock %}

{% block adibilisadmin_body %}




<!-- Start welcome-message -->           
<section class="welcome-message">
    <div class="container">
        <div class="hero-unit">
             <h4>{{ 'passorder.new.title'|trans }} <br> <small>{{ 'passorder.new.subtitle'|trans }}</small></h4>

        </div>
    </div>
</section>
<!-- End welcome-message -->








<div class="well">
    <p><b>{{ 'profile.show.username'|trans({}, 'FOSUserBundle') }}: </b> {{ app.user.username }}</p>
    <p><b> {{ 'profile.show.email'|trans({}, 'FOSUserBundle') }}: </b> {{ app.user.email }}</p>
    <p><b> {{ 'profile.show.firstname'|trans}} : </b> {{ app.user.firstname }}</p>
    <p><b> {{ 'profile.show.lastname'|trans}} : </b> {{ app.user.lastname }}</p>
    <p><b> {{ 'profile.show.address'|trans}} : </b> {{ app.user.address }}</p>
    <p><b> {{ 'profile.show.phone'|trans}} : </b> {{ app.user.telephone }}</p>
    <p><b> {{ 'profile.show.locality'|trans}} : </b> {{ app.user.locality.locality }}</p>

    <a href="{{ path('fos_user_profile_edit') }}"" class="btn">
      <i class="icon-edit"></i>
      {{ 'layout.buttons.editinfos'|trans}}
    </a>
</div>





<form action="{{ path('passorder_create') }}" method="post" {{ form_enctype(form) }}>
    {{ form_widget(form) }}





<a href="#myModal" role="button" class="btn" data-toggle="modal">{{ 'passorder.desc.order'|trans }}</a>
 
<!-- Modal -->
<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    <h3 id="myModalLabel">{{ 'passorder.desc.confirmation'|trans }}</h3>
  </div>
  <div class="modal-body">
    <p>{{ 'passorder.desc.confirmation_content'|trans }}</p>
  </div>
  <div class="modal-footer">
    <button class="btn" data-dismiss="modal" aria-hidden="true">{{ 'passorder.desc.cancel'|trans }}</button>
    <button type="submit" class="btn btn-success">{{ 'passorder.desc.validate'|trans }}</button>
  </div>
</div>


</form>



{% endblock %}